package com.hzdl.library.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class BookInfo {

    private Integer book_id;
    private String name;
    private String author;
    private String publish;//出版社
    private String ISBN;
    private String introduction;//简介

    private String language;
    private Integer price;
//    @JsonFormat(timezone = "GMT-8",pattern = "yyyy-MM-dd")
    private Date pubdate;
    private Integer class_id;
    private Integer pressmark;
    private Integer state;

    @Override
    public String toString() {
        return "BookInfo{" +
                "book_id=" + book_id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", publish='" + publish + '\'' +
                ", ISBN='" + ISBN + '\'' +
                ", introduction='" + introduction + '\'' +
                ", language='" + language + '\'' +
                ", price=" + price +
                ", pubdate=" + pubdate +
                ", class_id=" + class_id +
                ", pressmark=" + pressmark +
                ", state=" + state +
                '}';
    }

    public Integer getBook_id() {
        return book_id;
    }

    public void setBook_id(Integer book_id) {
        this.book_id = book_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Date getPubdate() {
        return pubdate;
    }

    public void setPubdate(Date pubdate) {
        this.pubdate = pubdate;
    }

    public Integer getClass_id() {
        return class_id;
    }

    public void setClass_id(Integer class_id) {
        this.class_id = class_id;
    }

    public Integer getPressmark() {
        return pressmark;
    }

    public void setPressmark(Integer pressmark) {
        this.pressmark = pressmark;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public BookInfo(Integer book_id, String name, String author, String publish, String ISBN, String introduction, String language, Integer price, Date pubdate, Integer class_id, Integer pressmark, Integer state) {

        this.book_id = book_id;
        this.name = name;
        this.author = author;
        this.publish = publish;
        this.ISBN = ISBN;
        this.introduction = introduction;
        this.language = language;
        this.price = price;
        this.pubdate = pubdate;
        this.class_id = class_id;
        this.pressmark = pressmark;
        this.state = state;
    }

    public BookInfo() {

    }
}
